package com.example.chat.dao;

import com.dragonsoftbravo.jpadsl.JPADslBaseDao;
import com.example.chat.model.Permission;
import com.example.chat.model.QPermission;
import com.querydsl.core.types.dsl.EntityPathBase;
import org.springframework.beans.factory.annotation.Autowired;

import javax.persistence.EntityManager;

/**
 * @Description
 * @Date 2022/11/16 23:58
 * @Author pq
 */
public class PermissionDao extends JPADslBaseDao<Permission,String> {

    @Autowired
    public PermissionDao (EntityManager entityManager) {
        setEntityManager(entityManager);
    }

    @Override
    public QPermission basePath() {
        return QPermission.permission;
    }
}
